package im.vinci.server.user.domain.sms;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * Created by mingjie on 17/3/28.
 */
@Component
public class SmsSendAgent implements ISmsSend {

    @Autowired
    @Resource(type = SmsSendByYunpian.class)
    private ISmsSend smsSender;

    @Override
    public boolean sendTextSms(String mobileNo, String msg) {
        return smsSender.sendTextSms(mobileNo, msg);
    }

    @Override
    public boolean sendAudioSms(String mobileNo, String msg) {
        return smsSender.sendAudioSms(mobileNo, msg);
    }
}
